<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 引入 Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<title>添加院校</title>
<style>
/*header的样式*/
.header{
	height:50dp;
	background:#ddd;
	
}
</style>

</head>

<body>
<div class="header">
<h1>某高校后勤管理</h1>
</div>
<div class="container">
<form class="form-horizontal" style="width:700px">
        <div class="form-group">
          <label class="control-label col-sm-2" for="name">所属学校：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="name" placeHolder="输入院校名称" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="province">学院名称：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="province" placeHolder="请输入学院名称" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="city">学院编号：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="city" placeHolder="请输入学院编号" />
          </div>
        </div>
        <div class="form-group" style="margin:0 auto;display:block; width:100px">
        <button  class="btn btn-default"  id="ok">添加</button>
        </div>
      </form>
</div>
</body>

<script>
$("#ok").click(function(){
	//所属学校，学院名称，学院编号
	var name=("#name").val();
	var province=("#province").val();
	var city=("#city").val();
	var area=("#area").val();
	$.post("/ulms_project/academic/add",{name:name,province:province,city:city,area:area},function(data)
	{
		alert("添加成功！");
	});
});
</script>
</html>
